package com.itwill.ecom.board;

import java.util.HashMap;
import java.util.List;

//예외처리 필요.
public interface BoardService {

	public abstract boolean createBoard(BoardBeans boardBeans) throws Exception;

	public abstract List<BoardBeans> getAllBoard(HashMap<String, String> pageMap);

	public abstract List<BoardBeans> getBoardByType(HashMap<String, String> pageMap);

	public abstract BoardBeans getBoardByNo(int boardno);
	
	public abstract List<BoardBeans> getBoardByNickname(HashMap<String, String> pageMap);

	public abstract List<BoardBeans> getBoardById(HashMap<String, String> pageMap);

	public abstract List<BoardBeans> getBoardByTitle(HashMap<String, String> pageMap);

	public abstract List<BoardBeans> getBoardByContent(HashMap<String, String> pageMap);
	
	public abstract int getAllCount();
	
	public abstract int getCountByType(String type);
	
	public abstract int getMaxNo(String id);

	public abstract boolean updateBoard(BoardBeans updateBoard);

	public abstract boolean updateRecommend(int boardno);

	public abstract boolean updateShow(int boardno);

	public abstract boolean deleteBoard(int board_no);

}